package com.lovo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lovo.dao.GoodsTypeMapper;
import com.lovo.vo.Goods_Type;

@Service
@Transactional
public class GoodsTypeService {
	@Autowired
	GoodsTypeMapper gtm;

	public int insertGoodsType(Goods_Type goods) {

		return gtm.insertGoodsType(goods);
	}

	public List<Goods_Type> findByCondition(Goods_Type goods) {

		return gtm.findByCondition(goods);
	}

	public int findCountByCondition(Goods_Type goods) {

		return gtm.findCountByCondition(goods);
	}

	public int deleteGoodsById(String[] ids) {

		return gtm.deleteGoodsById(ids);
	}

	public Goods_Type findById(Goods_Type goods) {
		return gtm.findById(goods);
	}

	public int updateById(Goods_Type goods) {
		return gtm.updateById(goods);
	}
}
